'use strict';

export default class extends think.controller.base {
  /**
   * some base method in here
   */
   * __before(){
        // yield this._user();
   }

   updateUser(user){
        return this.http.updateUser(user);
   }
   getUser(){
        return this.http.getUser();
   }
   //离开房间
   leaveRoom(){
        return this.http.leaveRoom();
   }
   //加入房间
   joinRoom(room){
        return this.http.joinRoom(room);
   }
   //房间总人数
   online(room, istrue = false){
        return this.http.online(room, istrue);
   }
   //移除消息
   rmMsg(msg){
        this.http.rmMsg(msg);
   }
   //添加消息
   addMsg(msg){
        this.http.addMsg(msg);
   }
   //报告消息
   report(...args){
        this.http.report(...args);
   }
   // qos
   qos(...args){
        return this.http.qos(...args);
   }
   // message
   message(...args){
        return this.http.message(...args);
   }
   // message
   publish(...args){
        return this.http.publish(...args);
   }
   // reply
   reply(...args){
        return this.http.reply(...args);
   }
   broadcastRoom(...args){
        return this.http.broadcastRoom(...args);
   }
}   